package com.hui.web;

import com.hui.service.WebService;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yhq
 * @since 17-3-11.
 */

@RestController
@Log4j
@SuppressWarnings("unused")
public class WebController {

    @Autowired
    private WebService webService;

    @GetMapping("/")
    public String home() {
        int add = webService.getAdd(1, 3);
        log.info("com.hui.web.WebController.home" + add);
        return "hystrix hello world" + add;
    }
}
